package com.qinsoft.frame.taobao.task;

import com.qinsoft.frame.messages.WriteMessage;

/**
 * 任务相关的exception
 */
public class TaskException extends Exception
{

    private static final long serialVersionUID = -5544338645050414628L;

    public TaskException(String string)
    {
        super(string);
    }
    
    public static void getResultMessage(Exception e)
    {
        WriteMessage.WriteErrorLog("自动任务异常:", e);
    }
    
    public static void getResultMessage(String className, Exception e)
    {
        WriteMessage.WriteErrorLog("自动任务异常:"+className, e);
    }
}
